<?php

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
jimport('joomla.application.component.model');

/**
 *Server Component Server Model
 *
 */
class ServerModelServer extends JModel
{
    /**
     * Get list of  published servers
     */
    function getServerList($idcategor)
    {
        $query = "SELECT a.* " .
            " FROM #__server AS a  " .
            " WHERE (a.published = 1) AND (a.indtypesrv=" . (int)$idcategor . ") ";

        $result = $this->_getList($query);
        return @$result;
    }
}

?>
